def get_history_data(code):
    import pandas as pd
    result_csv=pd.read_csv(r'F:\谷歌下载\vue-secondMenu-test-master\jht201850035\app01\001.csv',encoding='utf-8')
    data=pd.DataFrame(result_csv,columns=['TradingDate','Symbol','PE','PB','PS','Turnover','CirculatedMarketValue','ChangeRatio','Amount','Liquidility'])
    data.info()
    ans_list=[]
    for index,row in data.iterrows():
        if row['Symbol']==int(code):
            ans_list.append([row['TradingDate'],row['PE'],row['PB'],\
                row['PS'],row['Turnover'],row['CirculatedMarketValue'],\
                    row['ChangeRatio'],row['Amount'],row['Liquidility']])
            # print (type(ans_list[0][1]))
    return ans_list
get_history_data(1)